var express = require('express');
var router = express.Router();

/* GET home page. */
router.use('/api/index.json', async function (req, res, next) {
  // let msg = require('../public/api/mi/home')
  // msg.getHomeData()
  // res.set('Content-type','text/plain')
  res.json(require('../public/api/mi/home.json'));
});
router.use('/puppeteer', function(req, res, next) {
  let msg = require('../public/api/category')
  res.json(msg);
});
module.exports = router;
